<?php
namespace Core\Component\Crypt;
use \Phalcon\Mvc\User\Component;
/**
 * Crypt plugin.
 */
class Crypt
{
    public function __get($adapter) {
        $class = "\\Core\\Component\\Crypt\\" . ucfirst($adapter);
        if(!class_exists($class)) {
            throw new \Exception("Component {$adapter} not found.");
        }
        return new $class();
    }
}